<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录 - 电力收费管理系统</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
    <!-- 自定义CSS -->
    <link href="/css/login.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6 col-lg-5">
                <div class="login-container animated fadeIn">
                    <div class="login-icon">
                        <i class="fas fa-bolt"></i>
                    </div>
                    <div class="login-title">
                        <h2>电力收费管理系统</h2>
                        <p class="text-muted">请登录您的账号</p>
                    </div>
                    
                    <form id="loginForm">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <i class="fas fa-user"></i>
                                    </span>
                                </div>
                                <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名" required>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <i class="fas fa-lock"></i>
                                    </span>
                                </div>
                                <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码" required>
                                <div class="input-group-append">
                                    <span class="input-group-text">
                                        <i class="fas fa-eye toggle-password" style="cursor: pointer;"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">
                                        <i class="fas fa-user role-icon"></i>
                                    </span>
                                </div>
                                <select class="form-control role-select" id="role" required>
                                    <option value="">请选择用户角色</option>
                                    <option value="ADMIN">管理员</option>
                                    <option value="METER_READER">抄表员</option>
                                    <option value="CUSTOMER">客户</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="row">
                            <div class="col-6">
                                <div class="custom-control custom-checkbox remember-me">
                                    <input type="checkbox" class="custom-control-input" id="rememberMe">
                                    <label class="custom-control-label" for="rememberMe">记住我</label>
                                </div>
                            </div>
                            <div class="col-6 text-right">
                                <a href="#" class="text-primary">忘记密码？</a>
                            </div>
                        </div>
                        
                        <button type="submit" class="btn btn-primary btn-login">
                            <i class="fas fa-sign-in-alt mr-2"></i>登录
                        </button>
                        
                        <div class="register-link">
                            <span class="text-muted">还没有账号？</span>
                            <a href="/register.html" class="text-primary">立即注册</a>
                        </div>
                    </form>
                    
                    <div class="alert" role="alert"></div>
                    
                    <div class="login-footer">
                        <p>© 2024 电力收费管理系统. All rights reserved.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS 和依赖 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"></script>
    <!-- 自定义JS -->
    <script src="/js/login.js"></script>
</body>
</html> 